package com.pactera.asmp.server.pojo;

import java.util.Date;

/**
 * @ProjectName: asmp-server
 * @Package com.pactera.asmp.server.pojo
 * @ClassName: TCanInfo
 * @Description: TCanInfo
 * @Date 2020/08/03 15:07
 * @Author lvzhiqiang
 * @Version 1.0
 */
public class TCanInfo {
    private Long id;

    /**
     * 上位机唯一标识
     */
    private String cuid;

    /**
     * 设备唯一标识
     */
    private String duid;

    /**
     * can 设备索引
     */
    private Integer deviceIndex;

    /**
     * can 通道索引
     */
    private Integer channelIndex;

    /**
     * 状态，1-连接，2-断线
     */
    private Byte state;

    /**
     * 波特率
     */
    private String baudRate;

    /**
     * 通道
     */
    private Integer passage;

    private Date createTime;

    private Date lastOnlineTime;

    private Date lastOfflineTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCuid() {
        return cuid;
    }

    public void setCuid(String cuid) {
        this.cuid = cuid == null ? null : cuid.trim();
    }

    public String getDuid() {
        return duid;
    }

    public void setDuid(String duid) {
        this.duid = duid == null ? null : duid.trim();
    }

    public Integer getDeviceIndex() {
        return deviceIndex;
    }

    public void setDeviceIndex(Integer deviceIndex) {
        this.deviceIndex = deviceIndex;
    }

    public Integer getChannelIndex() {
        return channelIndex;
    }

    public void setChannelIndex(Integer channelIndex) {
        this.channelIndex = channelIndex;
    }

    public Byte getState() {
        return state;
    }

    public void setState(Byte state) {
        this.state = state;
    }

    public String getBaudRate() {
        return baudRate;
    }

    public void setBaudRate(String baudRate) {
        this.baudRate = baudRate == null ? null : baudRate.trim();
    }

    public Integer getPassage() {
        return passage;
    }

    public void setPassage(Integer passage) {
        this.passage = passage;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastOnlineTime() {
        return lastOnlineTime;
    }

    public void setLastOnlineTime(Date lastOnlineTime) {
        this.lastOnlineTime = lastOnlineTime;
    }

    public Date getLastOfflineTime() {
        return lastOfflineTime;
    }

    public void setLastOfflineTime(Date lastOfflineTime) {
        this.lastOfflineTime = lastOfflineTime;
    }
}